package com.hk.core.authentication.api.validatecode;


import com.hk.core.authentication.api.AuthenticationException;
import lombok.Getter;

/**
 * 验证码异常
 *
 * @author kevin
 * @date 2018-07-26 15:39
 */
@Getter
public class ValidateCodeException extends AuthenticationException {

    private final ValidateCode validateCode;

    public ValidateCodeException(ValidateCode validateCode, String msg, Throwable t) {
        super(msg, t);
        this.validateCode = validateCode;
    }

    public ValidateCodeException(ValidateCode validateCode, String msg) {
        super(msg);
        this.validateCode = validateCode;
    }
}
